package com.agentframework.core.action;

import org.springframework.ai.chat.messages.AssistantMessage;
import org.springframework.ai.chat.messages.Message;
import org.springframework.core.Ordered;

import java.util.List;

/**
 * @author wangjun
 **/
public interface Action extends Ordered {

    String name();

    AssistantMessage execute(String message);

    AssistantMessage execute(List<Message> messages);

}
